public class OfferContextModel extends Object implements XMLMarshallable
OfferContextModel represents a offer context.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="offerContext">
<xs:complexType>
<xs:sequence>
<xs:element ref="parameterSet" minOccurs="1" maxOccurs="1"/>
<xs:element ref="translationInstanceSet" minOccurs="1" maxOccurs="1"/>
<xs:element ref="tierTableInstanceSet" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
OfferContextModel()
Constructs an empty offer context model.
|
OfferContextModel(ParameterSetModel parameterSet,
TranslationInstanceSetModel translationInstanceSet,
TierTableInstanceSetModel tierTableInstanceSet)
Constructs an full offer context model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String name,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
ParameterSetModel |
getParameterSet()
Gets the parameter set model of this offer context.
|
TierTableInstanceSetModel |
getTierTableInstanceSet()
Returns the tier table instance set of this offer context.
|
TranslationInstanceSetModel |
getTranslationInstanceSet()
Returns the translation instance set of this offer context.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setParameterSet(ParameterSetModel parameterSet)
Sets the parameter set model of this offer context.
|
void |
setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
Sets the tier table instance set of this offer context.
|
void |
setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
Sets the translation instance set of this offer context.
|
public OfferContextModel()
public OfferContextModel(ParameterSetModel parameterSet, TranslationInstanceSetModel translationInstanceSet, TierTableInstanceSetModel tierTableInstanceSet)
parameterSet - the parameter set model of this offer context.translationInstanceSet - the translation instance set of this offer context.tierTableInstanceSet - the tier table instance set of this offer context.public void setParameterSet(ParameterSetModel parameterSet)
parameterSet - the parameter set model of this offer context.public ParameterSetModel getParameterSet()
public void setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
translationInstanceSet - the translation instance set of this offer context.public TranslationInstanceSetModel getTranslationInstanceSet()
public void setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
tierTableInstanceSet - the tier table instance set of this offer context.public TierTableInstanceSetModel getTierTableInstanceSet()
public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String name, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into